home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / evolution-common.postrm < prev    next >
Encoding:
Text File  |  2007-04-10  |  1.1 KB  |  29 lines

  1. #!/bin/sh
  2. set -e
  3. # Automatically added by dh_scrollkeeper
  4. if [ "$1" = "remove" ] && which scrollkeeper-update >/dev/null 2>&1; then
  5.     scrollkeeper-update -q
  6. fi
  7. # End automatically added section
  8. # Automatically added by dh_desktop
  9. if [ "$1" = "remove" ] && which update-desktop-database >/dev/null 2>&1 ; then
  10.     update-desktop-database -q
  11. fi
  12. # End automatically added section
  13. # Automatically added by dh_iconcache
  14. [ -d /usr/share/icons/hicolor ] && touch -m /usr/share/icons/hicolor || true
  15. if [ "$1" = "remove" ] && \
  16.    [ -x "`which gtk-update-icon-cache 2>/dev/null`" ] && \
  17.    [ -f /etc/gtk-2.0/gdk-pixbuf.loaders ]; then
  18.        if [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type d | wc -l`" -gt 0 ] && \
  19.        [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type f -name index.theme | wc -l`" -eq 1 ]; then
  20.            # we shouldn't bomb out, if gtk-update-icon-cache failes, 
  21.         # it's not important enough
  22.         gtk-update-icon-cache -q /usr/share/icons/hicolor || true;
  23.     else
  24.         # if the icon theme directory has no subdirs, we can remove the cache
  25.         rm -f /usr/share/icons/hicolor/icon-theme.cache || true;
  26.     fi
  27. fi
  28. # End automatically added section
  29.